# Contributor: Sertonix <sertonix@posteo.net>
# Maintainer: Sertonix <sertonix@posteo.net>
pkgname=arcticons-icon-theme
pkgver=9.6.5.0
pkgrel=0
pkgdesc="Line-based icon pack"
url="https://github.com/Arcticons-Team/Arcticons-Linux"
arch="noarch"
license="GPL-3.0-or-later"
depends="$pkgname-light $pkgname-dark"
subpackages="$pkgname-light:_theme $pkgname-dark:_theme"
source="$pkgname-$pkgver.tar.gz::https://github.com/Arcticons-Team/Arcticons-Linux/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/Arcticons-Linux-$pkgver"
options="!check"

package() {
	install -d "$pkgdir/usr/share/icons"
	cp -r arcticons-dark arcticons-light -t "$pkgdir/usr/share/icons"
}

_theme() {
	depends=
	local variant="${subpkgname##"$pkgname"-}"
	pkgdesc="$pkgdesc (Version for $variant themes)"

	amove usr/share/icons/arcticons-"$variant"
}

sha512sums="
9f310857d0698bd12e5cb44756b377d77d36c64b5864ec2a57de8d67e3c04e1a4a3b766fc89dabe1f6ab2526c5a1d8fb51f120f57f94d2b4fd4a3582e4cd0671  arcticons-icon-theme-9.6.5.0.tar.gz
"
